<template>
  <view class="layout">
    <demo-child ref="child"></demo-child>
    <view>------------------</view>
    <button @click="update">修改组件值</button>
    <navigator url="/pages/demo6/demo6?name=王五&age=20">跳转到demo6</navigator>
  </view>
</template>

<script setup>
  import { ref, onMounted } from 'vue'
  const child = ref(null)

  const update = function() {
    child.value.updateCount()
  }
</script>

<style lang="scss">
</style>